package com.lxd.property.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lxd.property.dao.UserMapper;
import com.lxd.property.pojo.User;
import com.lxd.property.service.UserService;

@Service("userService")
@Transactional
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;

	@Override
	public Integer addUser(User user) {
		// TODO Auto-generated method stub
		return userMapper.addUser(user);
	}

	@Override
	public User findUser(User user) {
		// TODO Auto-generated method stub
		return userMapper.findUser(user);
	}

	@Override
	public List<User> findAllUser() {
		// TODO Auto-generated method stub
		return userMapper.findAllUser();
	}

	@Override
	public Integer delUserById(Integer id) {
		// TODO Auto-generated method stub
		return userMapper.delUserById(id);
	}

	@Override
	public User findUserById(Integer id) {
		// TODO Auto-generated method stub
		return userMapper.findUserById(id);
	}

	@Override
	public Integer updateInfo(User user) {
		// TODO Auto-generated method stub
		return userMapper.updateInfo(user);
	}

}
